import Vue from 'vue'
import Router from 'vue-router'
// import search from '@/components/search'
import main from '@/components/main'
import timeline from '@/components/timeline'
import project from '@/components/project'
import projectedit from '@/components/project-edit'
import projectlist from '@/components/project-list'
import thing from '@/components/thing'
import thingedit from '@/components/thing-edit'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: main,
      children: [
        { path: 'timeline', component: timeline },
        { path: 'project', component: project },
        { path: 'project-edit', component: projectedit },
        { path: 'project-list', component: projectlist },
        { path: 'thing', component: thing },
        { path: 'thing-edit', component: thingedit }
      ]
    }
  ]
})
